package com.wlts.wzy.SelfModule.service;

import com.wlts.wzy.expand.MyLambdaQueryWrapper;
import com.wlts.wzy.expand.MyPage;
import com.wlts.wzy.SelfModule.entity.SelfBrand;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;

/**
 * <p>
 * 自营品牌表 服务类
 * </p>
 *
 * @author zhiyong
 * @since 2021-03-19
 */
public interface ISelfBrandService extends IService<SelfBrand> {

    SelfBrand getById(Serializable id, boolean isUseCache);

    MyPage<SelfBrand> page(SelfBrand selfBrand, Integer page, Integer size, boolean isUseCache);

    MyPage<SelfBrand> page(SelfBrand selfBrand, Integer page, Integer size, boolean isUseCache, String dimension);

    MyPage<SelfBrand> page(MyLambdaQueryWrapper<SelfBrand> wrapper, Integer page, Integer size, boolean isUseCache);

    MyPage<SelfBrand> page(MyLambdaQueryWrapper<SelfBrand> wrapper, Integer page, Integer size, boolean isUseCache, String dimension);

    SelfBrand selectOnes(MyLambdaQueryWrapper<SelfBrand> wrapper, boolean isUseCache);

    void delAllPageCache();

    void delDimensionPageCache(String dimension);
}
